#ifndef WHALETWITTERSTREAMTAB_H
#define WHALETWITTERSTREAMTAB_H

#include "whalestreamtab.h"
#include "whaletweetentry.h"

class WhaleTwitterConnect;

// a stream tab class for twitter streams
// use this to display data from a Twitter API call

// by default this will display data as a tweet
// overload newEntry function to display data in other ways
class WhaleTwitterStreamTab : public WhaleStreamTab {
    Q_OBJECT

    public:
        WhaleTwitterStreamTab( QString titleText, QWidget * parent = 0 );
        WhaleTwitterConnect * connector(); // get twitter connector object

    public slots:
        void setConnector( WhaleTwitterConnect * connector ); // attach a custom connector object
        WhaleTweetEntry * newEntry( QVariantMap data, QString streamName ); // new data arrived to stream

    private:
        WhaleTwitterConnect * mConnector;
};

#endif
